<% title "Visitors" %>

<table class="admin_listing">
  <tr>
    <th>Name</th>
    <th>Id No</th>
    <th>Organization</th>
    <th>Purpose</th>
    <th>Location</th>
    <th>Person To Meet</th>
    <th>Address</th>
    <th>Check In</th>
    <th>Check Out</th>
  </tr>
  <% for visitor in @visitors %>
    <tr>
      <td><%=h visitor.name %></td>
      <td><%=h visitor.id_no %></td>
      <td><%=h visitor.organization %></td>
      <td><%=h visitor.purpose %></td>
      <td><%=h visitor.location %></td>
      <td><%=h visitor.person_to_meet %></td>
      <td><%=h visitor.address %></td>
      <td><%=h visitor.check_in.strftime("%d/%m/%y - %I:%M %p") %></td>
      <td><%=h visitor.check_out.strftime("%d/%m/%y - %I:%M %p") %></td>
    </tr>
  <% end %>
</table>
